package com.junlong0716.enjoylearning.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author: 巴黎没有摩天轮Li
 * @description:
 * @date: Created in 下午8:41 2018/5/22
 * @modified by:
 */
public class ClassifyEntity {


    /**
     * id : 1
     * classifyName : 党政知识
     * details : [{"id":5,"classifyName":"党章党规"},{"id":6,"classifyName":"系列讲话精神"},{"id":7,"classifyName":"党史故事"},{"id":8,"classifyName":"历史唯物主义与辩证唯物主义的哲学观"}]
     */

    private int id;
    private String classifyName;
    private ArrayList<DetailsBean> details;

    public ClassifyEntity(int id, String classifyName, ArrayList<DetailsBean> details) {
        this.id = id;
        this.classifyName = classifyName;
        this.details = details;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getClassifyName() {
        return classifyName;
    }

    public void setClassifyName(String classifyName) {
        this.classifyName = classifyName;
    }

    public ArrayList<DetailsBean> getDetails() {
        return details;
    }

    public void setDetails(ArrayList<DetailsBean> details) {
        this.details = details;
    }

    public static class DetailsBean implements Serializable{
        /**
         * id : 5
         * classifyName : 党章党规
         */

        private int id;
        private String classifyName;
        private Boolean isSelected;

        public DetailsBean(int id, String classifyName,Boolean isSelected) {
            this.id = id;
            this.classifyName = classifyName;
            this.isSelected = isSelected;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getClassifyName() {
            return classifyName;
        }

        public void setClassifyName(String classifyName) {
            this.classifyName = classifyName;
        }

        public Boolean getSelected() {
            return isSelected;
        }

        public void setSelected(Boolean selected) {
            isSelected = selected;
        }
    }
}
